# $Id: PKGBUILD 80944 2012-12-07 13:00:49Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Jan "heftig" Steffens <jan.steffens@gmail.com>
# Contributor: sda <sda00@himki.net>

pkgname=igmpproxy
pkgver=0.1
pkgrel=1
pkgdesc="a simple multicast router for Linux only using the IGMP protocol"
arch=(i686 x86_64)
url="http://sourceforge.net/projects/igmpproxy"
license=('GPL')
depends=()
backup=("etc/igmpproxy.conf")
source=("http://downloads.sourceforge.net/sourceforge/igmpproxy/igmpproxy-$pkgver.tar.gz"
	"igmpproxy.rc.d"
	"igmpproxy.service")
md5sums=('c56f41ec195bc1fe016369bf74efc5a1'
         '642054dd586e5b0e7f660863e8131f57'
         '2ff8500f8a59cdfaf910e48cd54ab659')

build() {
  cd $srcdir/$pkgname-$pkgver
  ./configure --prefix=/usr --sysconfdir=/etc
  make
}

package() {
  cd $srcdir/$pkgname-$pkgver
  make DESTDIR=$pkgdir install
  install -Dm755 $srcdir/$pkgname.rc.d $pkgdir/etc/rc.d/$pkgname
  install -Dm644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service
}
